import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        int size = 10;
        Scanner num = new Scanner(System.in);
        int[] arrays = new int[size];
        for (int i = 0; i < size; i++) {
            arrays[i] = num.nextInt();
        }
        int count1 = 0;
        int count2 = 0;
        for (int i = 0; i < arrays.length; i++) {
            if(arrays[i] > 0){
                count1++;
            }else if(arrays[i] < 0){
                count2++;
            }
        }
        System.out.println("positive:"+count1);
        System.out.println("negative:"+count2);
    }
}
